package com.cmcc.qx.ws.dao;

import java.util.List;

import com.cmcc.qx.common.dao.BaseDao;
import com.cmcc.qx.common.entity.Article;

public interface ArticleDao extends BaseDao{

	public Article queryById(Integer id);
	
	public List<Article> queryTop();
	
	public List<Article> queryByDate(int start,int limit);
	
	public List<Article> queryByType(int start ,int limit ,Integer type);
	
	public Integer queryCnt(Integer type);
	
	public List<String> queryTag();
	
	public List<Article> queryArt();
	
	public List<Article> queryRank();
	
	public List<Article> selectArt(int start, int limit, String key);
	
	public Integer selectCntBykey(String key);
	
	/**
	 * 根据标签查询文章
	 * @param tag
	 * @param page
	 * @return
	 */
	public List<Article> queryTagArt(int start, int limit, String tag);
	/**
	 * 根据标签查询文章总数
	 * @param tag
	 * @return
	 */
	public Integer queryTagArtCnt(String tag);
	/**
	 * 修改访问量
	 * @param artid
	 */
	public void addVisits(String artid);
}
